using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using Managistics.Model; 

namespace Managistics.Model.Mappings {
    
    
    public class InputSheetDomesticMap : ClassMap<InputSheetDomestic> {
        
        public InputSheetDomesticMap() {
			Table("INPUT_SHEET_DOMESTIC");
			LazyLoad();
			Id(x => x.InputSheetDId).GeneratedBy.Assigned().Column("INPUT_SHEET_D_ID");
			References(x => x.OrderNhanhNhanh).Column("ORDERID_NN");
			References(x => x.InventoryThuduc).Column("INVENTORY_NAME_TD");
			Map(x => x.InputSheetDDate).Column("INPUT_SHEET_D_DATE").Not.Nullable();
			Map(x => x.DelivererNameSd).Column("DELIVERER_NAME_SD").Not.Nullable().Length(50);
			Map(x => x.ReceiverDName).Column("RECEIVER_D_NAME").Not.Nullable().Length(50);
			Map(x => x.NoteInputSheetD).Column("NOTE_INPUT_SHEET_D").Length(200);
			HasMany(x => x.DetailInputSheetDomestic).KeyColumn("INPUT_SHEET_D_ID");
        }
    }
}
